package com.k8.rpc.invoke.invocation;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class RpcInvocationTemplateManager {//管理
    Map<String, RpcInvocationTemplate> invocationMap = new ConcurrentHashMap<>();

    public void putInvocation(String key, RpcInvocationTemplate invocation) {
        invocationMap.put(key, invocation);
    }

    public Invocation getInvocation(String methodKey) {
        return invocationMap.get(methodKey);
    }

    public boolean containsInvocation(String methodKey) {
        return invocationMap.containsKey(methodKey);
    }
}
